package utils;

import java.io.IOException;
import java.util.Properties;

public class PropertiesUtil {

    public static Properties properties = new Properties();
    static{
        try {
            properties.load(PropertiesUtil.class.getResourceAsStream("/deploy.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    } 
    
    public static String getSavePath(){
        return (String) properties.get("savePath");
    }
    
    public static String getTempPath(){
        return (String) properties.get("tempPath");
    }
    
    public static String getDomainName(){
        return (String) properties.get("domainName");
    }
    
    
    public static void main(String[] args) {
        System.out.println(getTempPath());
        System.out.println(getSavePath());
    }
    
    
}
